#ifndef BULLET_H
#define BULLET_H

#include <QPixmap>

class bullet
{
public:
    bullet();

    //更新子弹坐标
    void updatePosition();

    //子弹发射
    void shoot();

    //子弹资源对象
    QPixmap m_bullet;

    //子弹坐标
    int m_X;
    int m_Y;

    //子弹速度
    int m_speed;

    //子弹是否闲置
    bool m_Free;

    //子弹的边框
    QRect m_Rect;
};

#endif // BULLET_H
